#include "GMClientServerPing.h"
#include "Server.h"

void GMClientServerPing::WriteToSckMsg( Networking::SockMsg* sm )
{
    //
    sm->WriteInt(m_clientID);
}

bool GMClientServerPing::ReadFromSckMsg( Networking::SockMsg* sm )
{
    m_clientID = -1;
    return sm->ReadInt(&m_clientID);
}

bool GMClientServerPing::Execute()
{
    return TheServer::Instance()->PingClient(m_clientID);
}
